import { request } from 'umi';

class U {}

export async function queryParkList(
  params: U & { pageSize?: number; current?: number; keyword?: string },
) {
  return request('/parkinglot/park/queryParkList', {
    method: 'POST',
    data: params,
  });
}

export async function statePark(params: number[], state: number) {
  return request('/parkinglot/park/statePark', {
    method: 'POST',
    data: {
      parkId: params,
      state,
    },
  });
}
